package com.ztl.mymqtt.mqtt;

public class MyMqttParas {

    public  MyMqttParas(String serverIp, String port, String clientId, String userName, String passWord,String topicSub) {
        this.serverIp = serverIp;
        this.port = port;
        this.clientId = clientId;
        this.userName = userName;
        this.passWord = passWord;
        this.topicSub=topicSub;
    }

    public void setServerIp(String serverIp) {
        this.serverIp = serverIp;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }


    public String getURI(){
        return "tcp://"+serverIp+":"+port;
    }

    public String serverIp;
    public String port;
    public String clientId;
    public String userName;
    public String passWord;

    public void setTopicSub(String topicSub) {
        this.topicSub = topicSub;
    }

    public String topicSub;
}
